package com.asiainfo.hybridapp.other;

import java.util.List;

/**
 * Created by YobertJomi on 2017/6/21.
 */

public class JsoupResultWrapper {

    /**
     * 一般的返回
     */
    public interface OnRequestResult<T> {
        void onSuccess(T... t);

        void onFail(int code, String msg);
    }

    /**
     * 返回列表
     *
     * @param <T>
     */
    public interface OnRequestListResult<T> {
        void onSuccess(List<T> list, String... msg);

        void onFail(int code, String msg);
    }
}
